import request from '@/utils/request'

// 查询goods-online列表
export function listGoodsOnline(query) {
  return request({
    url: '/goods/goodsOnline/list',
    method: 'get',
    params: query
  })
}

// 查询goods-online详细
export function getGoodsOnline(id) {
  return request({
    url: '/goods/goodsOnline/' + id,
    method: 'get'
  })
}

// 新增goods-online
export function addGoodsOnline(data) {
  return request({
    url: '/goods/goodsOnline',
    method: 'post',
    data: data
  })
}

// 修改goods-online
export function updateGoodsOnline(data) {
  return request({
    url: '/goods/goodsOnline',
    method: 'put',
    data: data
  })
}

// 删除goods-online
export function delGoodsOnline(id) {
  return request({
    url: '/goods/goodsOnline/' + id,
    method: 'delete'
  })
}
